/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package donut;

import skeleton.*;
import javax.swing.JFrame;

/**
 *
 * @author Administrator
 */
public class Donut  extends JFrame  {
 public Donut() {
     //put the Board to the center of the JFrame component.
        add(new DonutBoard());
        setTitle("Donut");
        //close the application when we click on the close button. It is not the default behaviour.
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        //the size for our window.
        setSize(360, 310);
        //We center the window.
        setLocationRelativeTo(null);

        setVisible(true);
    }
    public static void main(String[] args) {
        new Donut();
    }
}
